package com.example.home

import android.os.Bundle

import androidx.appcompat.app.AppCompatActivity
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.launcher.ARouter
import com.example.base.path.RouterPath
import com.example.common.view.provider.CommonServiceProvider

class HomeActivity : AppCompatActivity() {
    @Autowired(name=RouterPath.PATH_COMMON_PROVIDER)
    lateinit var mServiceProvider:CommonServiceProvider

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(R.layout.activity_home)
        ARouter.getInstance().inject(this)
        //mServiceProvider=ARouter.getInstance().build(RouterPath.PATH_COMMON_PROVIDER).navigation() as CommonServiceProvider

    }
    private fun loginState(){
        mServiceProvider?.checkLoginState()
    }
}